package db5;

public class Rectangle {
    static int length;
    static int width;
//    double Area;
//    double Per;
    Rectangle(){

    }

    Rectangle(int length,int width){
        this.length=length;
        this.width=width;
//        this.Area=Area;
//        this.Per=Per;
    }
    public static double getArea(){
        return length*width;
    }
    public static double getPer(){
        return (length+width)*2;
    }
    public static void showAll(){
        System.out.println("长："+length+"宽："+width+"面积："+getArea()+"周长"+getPer());
    }
}
